package game;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;

public class GameFrame extends JFrame {
	private GamePanel gamePanel;
	private ControlPanel controlPanel;
	
	public GameFrame() {
		gamePanel = new GamePanel(30);
		controlPanel = new ControlPanel(gamePanel);
		
		setLayout(new BorderLayout());
		getContentPane().add(controlPanel, BorderLayout.NORTH);
		getContentPane().add(gamePanel, BorderLayout.CENTER);
		setSize(new Dimension(500, 500));
		
		setDefaultCloseOperation(EXIT_ON_CLOSE);
	}
}
